﻿using System;
using System.Collections.Generic;
using System.Text;
using HAVNet.Core;


namespace HAVNet.Intros.AST
{
    public class ASTMemberDeclEventI : ASTMemberDeclI
    {
        public ASTType  type    { get; set; }
        public string   ident   { get; set; }

        public override string ToString()
        {
            string mods = "";

            if (Mods.has(modifiers, Mods.newMod)) mods += "new ";

            return
                Lazy.toStringNN(attrGroups, "", Environment.NewLine) +
                mods +
                type.ToString() + " " +
                ident + ";" + Environment.NewLine;
        }
    }
}
